import { RouteRecordRaw } from 'vue-router'
export const Layout = () => import('@/layout/index.vue')

const advertisementRoutes: RouteRecordRaw[] = [
    {
        path: '/advertisement',
        component: Layout,
        redirect: '/advertisement/index',
        name: 'Advertisement',
        meta: { title: '广告投放', icon: 'advertisement-line' },
        children: [
            {
                path: 'advertising',
                component: () => import('@/views/advertisement/Advertising.vue'),
                name: 'Advertising',
                meta: { title: '广告位管理' },
                children: []
            },
            {
                path: 'list',
                component: () => import('@/views/advertisement/List.vue'),
                name: 'AdvertisementList',
                meta: { title: '广告列表' },
                children: []
            },
            {
                path: 'exclusive',
                component: () => import('@/views/advertisement/Exclusive.vue'),
                name: 'Exclusive',
                meta: { title: '独占广告' },
                children: []
            },
            {
                path: 'shared',
                component: () => import('@/views/advertisement/Shared.vue'),
                name: 'Shared',
                meta: { title: '共享广告' },
                children: []
            },
            {
                path: 'recharge-record',
                component: () => import('@/views/advertisement/RechargeRecord.vue'),
                name: 'RechargeRecord',
                meta: { title: '充值记录' },
                children: []
            },
            {
                path: 'deduction-statistics',
                component: () => import('@/views/advertisement/DeductionStatistics.vue'),
                name: 'DeductionStatistics',
                meta: { title: '扣费统计' },
                children: []
            },
        ]
    }
]

export default advertisementRoutes;